package com.xbongbong.saas.model;

import com.xbongbong.paas.pojo.MarketingSettingValuePojo;
import com.xbongbong.saas.domain.entity.MarketingSettingEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface MarketingSettingModel {
   Long insert(MarketingSettingEntity entity);

   void insertBatch(List<MarketingSettingEntity> list);

   List<MarketingSettingEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(MarketingSettingEntity entity);

   MarketingSettingEntity getByKey(Long key, String corpid);

   MarketingSettingEntity getByType(Integer settingType, String corpid);

   Map<Integer, MarketingSettingValuePojo> getByCorpid(String corpid);
}
